//------------------------------------------------------------------------------------------------------
// 入口
//------------------------------------------------------------------------------------------------------
// 新建全局变量Game，可用自定义子类继承GameBase
var Game = new GameBase();
// 监听引擎初始化
EventUtils.addEventListenerFunction(ClientWorld, ClientWorld.EVENT_INITED, () => {
    // to do
    // -- 如显示1号界面
    var ff = GameUI.show(15004) as Start;
    /*
    var ff = GameUI.show(15002) as Sprite_Cup_W26;

    
    var f = new Sprite_Cup_W26();
    f.x = 300;
    f.y = 300;

    var f2 = new Sprite_Cup_W26();
    f2.x = 500;
    f2.y = 500;

    stage.addChild(f);
    stage.addChild(f2);

    f2.isExistCoin = true;
    */

    // var group = new GUI_CupGroup_W26();

    // group.x = 300;
    // group.y = 300;

    // stage.addChild(group);

    // group.randomSwap(100);
  
}, null)